home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Illustrator 6.0 SDK r1 Mac / AI Plugin Interface / AIRandom.h < prev    next >
Text File  |  1995-12-21  |  1KB  |  80 lines

  1. /**
  2.  
  3.     AIRandom.h
  4.     Copyright (c) 1995 Adobe Systems Incorporated.
  5.     All Rights Reserved
  6.  
  7.     Adobe Illustrator 6.0 Random Number Suite.
  8.  
  9.  **/
  10.  
  11. #ifndef __AIRandom__
  12. #define __AIRandom__
  13.  
  14.  
  15. /*******************************************************************************
  16.  **
  17.  **    Imports
  18.  **
  19.  **/
  20.  
  21. #include "AITypes.h"
  22.  
  23.  
  24. #if Macintosh
  25.     #ifdef __cplusplus
  26.     extern "C" {
  27.     #endif
  28.     
  29.     #if PRAGMA_ALIGN_SUPPORTED
  30.     #pragma options align=mac68k
  31.     #endif
  32.     
  33.     #if PRAGMA_IMPORT_SUPPORTED
  34.     #pragma import on
  35.     #endif
  36. #endif
  37.  
  38.  
  39. /*******************************************************************************
  40.  **
  41.  ** Constants
  42.  **
  43.  **/
  44.  
  45. #define kAIRandomSuite        "AI Random Suite"
  46. #define kAIRandomVersion    2
  47.  
  48.  
  49. /*******************************************************************************
  50.  **
  51.  **    Suite
  52.  **
  53.  **/
  54.  
  55. typedef struct {
  56.  
  57.     MACPASCAL Fixed (*FixedRnd) ( void );
  58.     MACPASCAL void (*SetRndSeed) ( long seed );
  59.     MACPASCAL long (*GetRndSeed) ( void );
  60.  
  61. } AIRandomSuite;
  62.  
  63.  
  64. #if Macintosh
  65.     #if PRAGMA_IMPORT_SUPPORTED
  66.     #pragma import off
  67.     #endif
  68.     
  69.     #if PRAGMA_ALIGN_SUPPORTED
  70.     #pragma options align=reset
  71.     #endif
  72.     
  73.     #ifdef __cplusplus
  74.     }
  75.     #endif
  76. #endif
  77.  
  78.  
  79. #endif
  80.